package Model;

import java.io.Serializable;

/*
 * @author Roch San Buenaventura
 */

public class PropertyOwns7 extends PropertyState implements Serializable 
{

	private static PropertyOwns7 INSTANCE = null;
	final static long serialVersionUID = 216;
	
	protected PropertyOwns7() 
	{

	}
	
	public static PropertyState Instance() 
	{
		if (INSTANCE == null) {
			INSTANCE = new PropertyOwns7();
		}
		
		return INSTANCE;
	}

	public void landOn(Player player, PropertySpace property) 
	{
		property.getOwner().collectRent(property.getRentValues()[8], player);
	}

	protected void ownershipIncrease(PropertySpace p) 
	{
		System.err.println("PropertyOwns7 ownershipIncrease called - not supposed to happen");
	}
	
	protected void ownershipDecrease(PropertySpace p)
	{
		p.changeState(PropertyOwns3.Instance());
	}
	
	protected String getNameAndStatus() 
	{
		return " (7 Owned)";
	}
	
	public String toString() {
		return "PropertyOwns4";
	}
}
